﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class aspx_admin_tang_insert : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            (this.FormView1.FindControl("时间TextBox") as TextBox).Text = DateTime.Now.ToString();
            (this.FormView1.FindControl("主办TextBox") as TextBox).Text = "教务处";
            (this.FormView1.FindControl("全文内容TextBox") as TextBox).Text = "此处粘贴除主标题和副标题之外的全部信息。";
            (this.FormView1.FindControl("txt重要性") as TextBox).Text = "10";
        }
    }
    protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
    {
        WebHelper.MessageBox.Show("发布成功!");
    }
}